package com.spvs.job.mapper;

import com.spvs.job.domain.EquipPatrolPlanRecord;

import java.util.List;

/**
 * 巡检计划Mapper接口
 *
 * @author supervision
 * @date 2024-06-09
 */
public interface EquipPatrolPlanRecordMapper
{
    /**
     * 查询巡检计划
     *
     * @param id 巡检计划主键
     * @return 巡检计划
     */
    public EquipPatrolPlanRecord selectEquipPatrolPlanRecordById(Long id);

    /**
     * 查询巡检计划列表
     *
     * @param equipPatrolPlanRecord 巡检计划
     * @return 巡检计划集合
     */
    public List<EquipPatrolPlanRecord> selectEquipPatrolPlanRecordList(EquipPatrolPlanRecord equipPatrolPlanRecord);

    /**
     * 新增巡检计划
     *
     * @param equipPatrolPlanRecord 巡检计划
     * @return 结果
     */
    public int insertEquipPatrolPlanRecord(EquipPatrolPlanRecord equipPatrolPlanRecord);

    /**
     * 修改巡检计划
     *
     * @param equipPatrolPlanRecord 巡检计划
     * @return 结果
     */
    public int updateEquipPatrolPlanRecord(EquipPatrolPlanRecord equipPatrolPlanRecord);

    /**
     * 删除巡检计划
     *
     * @param id 巡检计划主键
     * @return 结果
     */
    public int deleteEquipPatrolPlanRecordById(Long id);

    /**
     * 批量删除巡检计划
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipPatrolPlanRecordByIds(Long[] ids);

    List<EquipPatrolPlanRecord> selectAll(Integer code);
}
